package com.example.testbook.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("user")
public class UserController1 {
    @RequestMapping("login")
public Boolean login(String userName,String password){
        if(userName.length()==0 || password.length()==0){
            return false;
        }
        @Autowired
        UserService1 userService1;
        if(userService1.getUsername().equals(userName) || userService1.getPassword().equals(password)){
            return false;
        }
        return true;

    }
}
